#!/usr/bin/env python
# encoding: utf-8
# @Time    : 2020/8/24 18:40
# @Author  : Mr. Cui
# @File    : views.py
# @Software: PyCharm
# project蓝图的视图

from . import project_version
from ..project_version.service import project_version_service
from ...libs import result, const


@project_version.route('/get_project_version/<project_id>', methods=['get'])
def get_project_version(project_id):
    res = project_version_service.get_project_version(project_id)
    return result(const.SUCCESS, const.QUERY_SUCCESS, res)
